<ion-view view-title="我发布的寻找加盟店一览">
	
  <!--头部的1个按钮-->
	<ion-nav-buttons side="right">
		<button class="button button-clear icon ion-plus-circled" on-tap="onshow_list()"></button>
	</ion-nav-buttons>
	
	
	 <ion-content>
	 	<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		<div class="list list-inset" ng-repeat="brand in data.agenterdemand">
		  <li class="item padding-10">
	       <span class="font-gray-my">发布时间：</span>
	       {{brand.release_time}}
	       <i class="icon ion-compose positive font-1rem-my right-zhang" on-tap="onshow_list(brand.info_id) " ng-show="brand.status=='审核中'"></i>
	       <i class="icon ion-close-circled positive font-1rem-my right-zhang" ng-show="brand.status!='审核中'" on-tap="delete_item(brand.info_id)"></i>
		 </li>
		  <li class="item padding-10" ng-show="brand.brand.length==0">
		  	<div>
		  		<span class="font-gray-my" >品牌：暂没有品牌数据</span><br />
		  	</div>
		  </li>
	     <li class="item padding-10">
	       <span class="font-gray-my">品牌：</span>{{brand.brand_name}}
	       <span class="right-zhang  font-large-my" ng-class="{'energized':brand.status=='审核中','assertive':brand.status=='不通过','balanced':brand.status=='通过'}">
	       	{{brand.status}}</span>
		  </li>
		   <li class="item padding-10" ng-show="brand.cat_type.length==0">
		  	<div>
		  		<span class="font-gray-my" >品类：暂没有品类数据</span><br />
		  	</div>
		  </li>
		  <li class="item item-text-wrap padding-10">
		   <div  ng-repeat="type in brand.cat_type">
		   <span class="font-gray-my" ng-class="{invisible:$index>0}">品类：</span>{{type.name}}</div>
		  </li>
		  <li class="item padding-10" ng-show="brand.region.length==0">
		  	<div>
		  		<span class="font-gray-my" >地域：暂没有地域数据</span><br />
		  	</div>
		  </li>
		  <li class="item padding-10">
	        <div ng-repeat="region in brand.region">
		  		<span class="font-gray-my" ng-class="{invisible:$index>0}">地域：</span>{{region.name}}<br />
		    
		  	</div>
		  </li>
		  <li class="item padding-10">
		  	  <div class="row padding-0">
		  	  	 <div class="col">
		  	  	 	<span class="font-gray-my">预设数：</span> {{brand.num}}
		  	  	 </div>
		  	  	  <div class="col">
		  	  	 	 <span class="font-gray-my">已有：</span>{{brand.hasnum}}
		  	  	 </div>
		  	  	  <div class="col">
		  	  	 	 <span class="font-gray-my">空缺：</span>{{brand.surplus}}
		  	  	 </div>
		  	  </div>
		  </li>
		  <li class="item item-divider text-center">
		  	加盟店详情
		  </li>
		   <div class="item item-divider text-center" ng-show="brand.store.length==0"> 暂无</div>
		 <div class="stable-bg padding-bottom" ng-repeat="num in brand.store"><!-- 循环div -->
		   <li class="item  item-borderless font-large-my" style="padding: 6px 0 5px 16px;">
		  	<span class="font-gray-my">加盟店：</span>{{num.name}}
		  	<button class="button button-small  button-balanced  right-zhang" style="width: 20%;" on-tap="show_detail(num.apply_id,num.name)">详情</button>
		  </li>
		   <li class="item item-input item-borderless font-large-my">
		  		<span class="font-gray-my">应征时间：</span>{{num.apply_time*1000|date:"yyyy-MM-dd HH:mm:ss"}}
		  		
		  </li >
		  <li class="item item-input item-borderless font-large-my">
		  	<span class="font-gray-my ">状态：</span>{{num.status}}
		  </li>
		   <li class="item item-input item-borderless" ng-show="num.status=='通过'?false:num.status!='拒绝'">
		  	 <button class="button button-small button-positive col-20" on-tap="answer(brand.info_id,num.id,true)">通过</button>
		  	 <button class="button button-small button-assertive col-20 col-offset-3" on-tap="showPopup(brand.info_id,num.id,false)">拒绝</button>
		  </li>
		 </div><!-- 循环div -->
		 
		 
		</div>
<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	 </ion-content>
</ion-view>
